﻿using OfficeOpenXml;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExcelProject.Model
{
    /// <summary>
    /// 表格基本信息
    /// </summary>
    public class ExcelConfig
    {
        /// <summary>
        /// 文件路径
        /// </summary>
        public string Path { get; set; } = string.Empty;
        /// <summary>
        /// 要读取的Sheet名称
        /// </summary>
        public string SheetName { get; set; } = string.Empty;
        /// <summary>
        /// 表头的行区间，如[1,2,3]，有多少行写多少行
        /// </summary>
        public List<int> TableHeaderX { get; set; } = new List<int>();
        /// <summary>
        /// 设置表头的列区间，如[1,2,3]，有多少列写多少列
        /// </summary>
        public List<int> TableHeaderY { get; set; } = new List<int>();
        /// <summary>
        /// Sheet集合
        /// </summary>
        public ExcelWorksheets SheetList { get; set; } = null;
        /// <summary>
        /// 选中的Sheet
        /// </summary>
        public ExcelWorksheet SelectSheet { get; set; } = null;
    }
}
